(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  ["pages/user/user"], {
    "1694b": function (t, e, n) {
      "use strict";
      (function (t) {
        n("77a0");
        r(n("66fd"));
        var e = r(n("3429"));

        function r(t) {
          return t && t.__esModule ? t : {
            default: t
          }
        }
        t(e.default)
      }).call(this, n("543d")["createPage"])
    },
    3429: function (t, e, n) {
      "use strict";
      n.r(e);
      var r = n("a3d1"),
        a = n("b1c2");
      for (var o in a) "default" !== o && function (t) {
        n.d(e, t, (function () {
          return a[t]
        }))
      }(o);
      n("926d");
      var u, s = n("f0c5"),
        i = Object(s["a"])(a["default"], r["b"], r["c"], !1, null, null, null, !1, r["a"], u);
      e["default"] = i.exports
    },
    "46f1": function (t, e, n) {},
    "926d": function (t, e, n) {
      "use strict";
      var r = n("46f1"),
        a = n.n(r);
      a.a
    },
    a3d1: function (t, e, n) {
      "use strict";
      n.d(e, "b", (function () {
        return a
      })), n.d(e, "c", (function () {
        return o
      })), n.d(e, "a", (function () {
        return r
      }));
      var r = {
          wanlProduct: function () {
            return Promise.all([n.e("common/vendor"), n.e("components/wanl-product/wanl-product")]).then(n.bind(null, "d93b"))
          },
          uniLoadMore: function () {
            return n.e("components/uni-load-more/uni-load-more").then(n.bind(null, "ac38"))
          }
        },
        a = function () {
          var t = this,
            e = t.$createElement,
            n = (t._self._c, t.$wanlshop.oss(t.user.avatar, 62, 62, 2, "avatar")),
            r = t.statistics.order.pay > 0 ? t.$wanlshop.toFormat(t.statistics.order.pay, "hundred") : null,
            a = t.statistics.order.delive > 0 ? t.$wanlshop.toFormat(t.statistics.order.delive, "hundred") : null,
            o = t.statistics.order.receiving > 0 ? t.$wanlshop.toFormat(t.statistics.order.receiving, "hundred") : null,
            u = t.statistics.order.evaluate > 0 ? t.$wanlshop.toFormat(t.statistics.order.evaluate, "hundred") : null;
          t._isMounted || (t.e0 = function (e) {
            return t.$wanlshop.auth("/pages/user/setting/user")
          }, t.e1 = function (e) {
            return t.$wanlshop.auth("/pages/user/setting/user")
          }, t.e2 = function (e) {
            return t.$wanlshop.auth("/pages/article/details?id=12")
          }, t.e3 = function (e) {
            return t.$wanlshop.auth("/pages/user/order/order?state=1")
          }, t.e4 = function (e) {
            return t.$wanlshop.auth("/pages/cart/cart")
          }, t.e5 = function (e) {
            return t.$wanlshop.auth("/pages/user/coupon/mycard")
          }, t.e6 = function (e) {
            return t.$wanlshop.auth("/pages/user/order/order?state=4")
          }, t.e7 = function (e) {
            return t.$wanlshop.auth("/pages/user/signin/signin")
          }, t.e8 = function (e) {
            return t.$wanlshop.auth("/pages/ai/aicf/aicf")
          }, t.e9 = function (e) {
            return t.$wanlshop.auth("/pages/ai/aicy/aicy")
          }, t.e10 = function (e) {
            return t.$wanlshop.auth("/pages/ai/ailist")
          }, t.e11 = function (e) {
            return t.$wanlshop.auth("/pages/baike/signin/log")
          }, t.e12 = function (e) {
            return t.$wanlshop.auth("/pages/user/help")
          }, t.e121 = function (e) {
            return t.$wanlshop.auth("/pages/user/money/money")
            
          },
          t.e123 = function (e) {
            return t.$wanlshop.auth("/pages/user/qrcode/qrcode")
            
          },
          t.e126 = function (e) {
            return t.$wanlshop.auth("/pages/shop/help")
            
          },
          
          t.e139 = function (e) {
            return t.$wanlshop.auth("/pages/user/signn/log")
            
          },

          t.e13 = function (e) {
            return t.$wanlshop.auth("/pages/notice/system/system")
          }), t.$mp.data = Object.assign({}, {
            $root: {
              g0: n,
              g1: r,
              g2: a,
              g3: o,
              g4: u
            }
          })
        },
        o = []
    },
    b1c2: function (t, e, n) {
      "use strict";
      n.r(e);
      var r = n("e581"),
        a = n.n(r);
      for (var o in r) "default" !== o && function (t) {
        n.d(e, t, (function () {
          return r[t]
        }))
      }(o);
      e["default"] = a.a
    },
    e581: function (t, e, n) {
      "use strict";
      (function (t) {
        Object.defineProperty(e, "__esModule", {
          value: !0
        }), e.default = void 0;
        var r = o(n("a34a")),
          a = n("2f62");

        function o(t) {
          return t && t.__esModule ? t : {
            default: t
          }
        }

        function u(t, e, n, r, a, o, u) {
          try {
            var s = t[o](u),
              i = s.value
          } catch (c) {
            return void n(c)
          }
          s.done ? e(i) : Promise.resolve(i).then(r, a)
        }

        function s(t) {
          return function () {
            var e = this,
              n = arguments;
            return new Promise((function (r, a) {
              var o = t.apply(e, n);

              function s(t) {
                u(o, r, a, s, i, "next", t)
              }

              function i(t) {
                u(o, r, a, s, i, "throw", t)
              }
              s(void 0)
            }))
          }
        }

        function i(t, e) {
          var n = Object.keys(t);
          if (Object.getOwnPropertySymbols) {
            var r = Object.getOwnPropertySymbols(t);
            e && (r = r.filter((function (e) {
              return Object.getOwnPropertyDescriptor(t, e).enumerable
            }))), n.push.apply(n, r)
          }
          return n
        }

        function c(t) {
          for (var e = 1; e < arguments.length; e++) {
            var n = null != arguments[e] ? arguments[e] : {};
            e % 2 ? i(Object(n), !0).forEach((function (e) {
              l(t, e, n[e])
            })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : i(Object(n)).forEach((function (e) {
              Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e))
            }))
          }
          return t
        }

        function l(t, e, n) {
          return e in t ? Object.defineProperty(t, e, {
            value: n,
            enumerable: !0,
            configurable: !0,
            writable: !0
          }) : t[e] = n, t
        }
        var f = {
          data: function () {
            return {
              modalName: 'share',
              scrollAnimation: 0,
              goodsData: {
                id: 0,
                category_id: 0,
                shop_id: 0,
                brand_id: 0,
                freight_id: 0,
                title: "",
                image: "",
                images: "",
                flag: "",
                content: "",
                category_attribute: [],
                activity: !1,
                price: null,
                interval_price: null,
                market_price: null,
                sales: 0,
                brand: {},
                freight: {
                  name: "",
                  isdelivery: 1
                },
                payment: 0,
                comment: 0,
                praise: 0,
                moderate: 0,
                negative: 0,
                like: 0,
                views: 0,
                status: "",
                category: {},
                follow: !0,
                sku: [],
                spu: [],
                promotion: [],
                coupon: [],
                comment_list: {
                  data: [],
                  figure: 0,
                  tag: []
                },
                shop: {
                  city: ""
                },
                shop_recommend: {}
              },
              isChoice: "",
              dengji:'',
              fscount: 0,
              gzcount: 0,
              rjcount: 0,
              wdcount: 0,
              tzcount: 0,
              gz2count: 0,
              wanlsys: this.$wanlshop.wanlsys(),
              headerOpacity: 0,
              reload: !0,
              likeData: [],
              current_page: 1,
              last_page: 1,
              status: "loading",
              contentText: {
                contentdown: " ",
                contentrefresh: "正在加载...",
                contentnomore: "没有更多数据了"
              }
            }
          },
          computed: c({}, (0, a.mapState)(["user", "statistics", "common"])),
          onPullDownRefresh: function () {
            this.loadData()
          },
          onShow: function () {
            var e = this;
            setTimeout((function () {
              t.setNavigationBarColor({
                frontColor: "light" == e.$store.state.common.appStyle.user_font_color ? "#ffffff" : "#000000",
                backgroundColor: e.$store.state.common.appStyle.user_nav_color
              })
            }), 200)
          },
          onLoad: function () {
           
            this.loadlikeData(), 
            this.getCount()
          },
          onShow: function () {
            this.getCount()
        },

          onPageScroll: function (t) {
            var e = 50;
            t.scrollTop = t.scrollTop > e ? 50 : t.scrollTop, this.headerOpacity = t.scrollTop * (1 / e)
          },
          onReachBottom: function () {
            this.current_page >= this.last_page ? this.status = "noMore" : (this.reload = !1, this.current_page = this.current_page + 1, this.status = "loading", this.loadlikeData())
          },



          methods: {

            
          showModal: function (t) {

            this.modalName = 'share'
          },


            gourl: function (e) {
              return s(r.default.mark((function n() {
                return r.default.wrap((function (n) {
                  while (1) switch (n.prev = n.next) {
                    case 0:
                      t.setStorage({
                        key: "type",
                        data: e
                      }), t.switchTab({
                        url: "/pages/find/find"
                      });
                    case 2:
                    case "end":
                      return n.stop()
                  }
                }), n)
              })))()
            },
            loadData: function () {
              var e = this;
              return s(r.default.mark((function n() {
                return r.default.wrap((function (n) {
                  while (1) switch (n.prev = n.next) {
                    case 0:
                      e.$api.post({
                        url: "/wanlshop/user/refresh",
                        success: function (t) {
                          e.$store.commit("statistics/edit", t)
                        }
                      }), t.stopPullDownRefresh();
                    case 2:
                    case "end":
                      return n.stop()
                  }
                }), n)
              })))()
            },
            getCount: function () {
              var e = this
              wx.request({
                url: 'https://www.xiaoyudiyimei.cn/api/wanlshop/find/getCount',
                data: {
                  uid: wx.getStorageSync("wanlshop:user").id,
                },
                success:function(res){
               
                  var t= res.data.data
                  e.dengji = t.dengji,
                  e.fscount = t.fs, e.gzcount = t.gz, e.rjcount = t.rj, e.wdcount = t.wd, e.tzcount = t.tz, e.gz2count = t.gz2

                }
              })

            },
            loadlikeData: function () {
              var t = this;
              return s(r.default.mark((function e() {
                return r.default.wrap((function (e) {
                  while (1) switch (e.prev = e.next) {
                    case 0:
                      t.$api.get({
                        url: "/wanlshop/product/likes?pages=user",
                        data: {
                          page: t.current_page
                        },
                        success: function (e) {
                          t.likeData = t.reload ? e.data : t.likeData.concat(e.data), t.current_page = e.current_page, t.last_page = e.last_page, t.status = 0 == e.total ? "noMore" : "more"
                        }
                      });
                    case 1:
                    case "end":
                      return e.stop()
                  }
                }), e)
              })))()
            },
            help: function () {
              this.$wanlshop.to("/pages/user/help")
            },
            setting: function () {
              this.$wanlshop.to("/pages/user/setting/setting")
            },
            portrai: function () {
              this.$wanlshop.to("/pages/user/portrait/portrait")
            }
          }
        };
        e.default = f
      }).call(this, n("543d")["default"])
    }
  },
  [
    ["1694b", "common/runtime", "common/vendor"]
  ]
]);